<?php
namespace app\service\controller;

use think\Controller;

class Base extends Controller
{
    public function initialize()
    {
        if(empty(session('l_user_name'))){

            $this->redirect(url('login/index'));
        }

    }
}